#region Usings

using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

#endregion

namespace KanbanBoard.Tests.Server.Utils {
    public static class Expect<T> where T : Exception {
        public static void When(Action action) {
            try {
                action();
                Assert.Fail();
            }
            catch (T) {}
        }
    }
}